
<tr ${$index%2?'':'class="alt"'}>
	<td><?php echo CHtml::link($data->teamname->title,array('/team/simple','id'=>$data->teamname->id)); ?></a></td>
	<td><?php echo CHtml::encode($data->id); ?></td>
	<td><?php echo CHtml::encode($data->secret); ?></td>
	<td><?php echo date('Y-m-d',CHtml::encode($data->expire_time)); ?></td>
	<td><?php if($data->consume==N&&time()<=$data->expire_time) echo '尚未消费';
		 else if(time()>$data->expire_time) echo '已经过期';
		 else  echo '已经消费'.'<br>'.date('Y-m-d',CHtml::encode($data->consume_time)); ?></td>
</tr>